<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>NVTX C API Reference: nvToolsExtMemCudaRt.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">NVTX C API Reference<span id="projectnumber">&#160;v3</span>
   </div>
   <div id="projectbrief">NVIDIA Tools Extension Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_48b95086e7eb28d79ef283b47c5fa0c6.html">nvtx3</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">nvToolsExtMemCudaRt.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment"> * SPDX-FileCopyrightText: Copyright (c) 2009-2025 NVIDIA CORPORATION &amp; AFFILIATES. All rights reserved.</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment"> * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment"> *</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment"> * you may not use this file except in compliance with the License.</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment"> * You may obtain a copy of the License at</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="comment"> *</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="comment"> *     http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="comment"> *</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="comment"> * See the License for the specific language governing permissions and</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="comment"> * limitations under the License.</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="comment"> *</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="comment"> * Licensed under the Apache License v2.0 with LLVM Exceptions.</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="comment"> * See https://nvidia.github.io/NVTX/LICENSE.txt for license information.</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="comment"> */</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">#if defined(NVTX_AS_SYSTEM_HEADER)</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">#if defined(__clang__)</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">#pragma clang system_header</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="preprocessor">#elif defined(__GNUC__) || defined(__NVCOMPILER)</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="preprocessor">#pragma GCC system_header</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="preprocessor">#elif defined(_MSC_VER)</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="preprocessor">#pragma system_header</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="preprocessor">#include &quot;nvToolsExtMem.h&quot;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span><span class="preprocessor">#include &quot;cuda.h&quot;</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span><span class="preprocessor">#include &quot;cuda_runtime.h&quot;</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span><span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span><span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="preprocessor">#ifndef NVTX_MEM_CUDART_CONTENTS_V1</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span><span class="preprocessor">#define NVTX_MEM_CUDART_CONTENTS_V1</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="group___m_e_m_o_r_y___c_u_d_a_r_t.html#gacb334f2ec387c0069fa75fe6bec459bb">   58</a></span><span class="preprocessor">#define NVTX_MEM_TYPE_CUDA_ARRAY 0x11</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span> </div>
<div class="foldopen" id="foldopen00062" data-start="{" data-end="};">
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="structnvtx_mem_cuda_array_range_desc__v1.html">   62</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="structnvtx_mem_cuda_array_range_desc__v1.html">nvtxMemCudaArrayRangeDesc_v1</a></div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>{</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>    uint16_t extCompatID; <span class="comment">/* Set to NVTX_EXT_COMPATID_MEM */</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>    uint16_t structSize; <span class="comment">/* Size of the structure. */</span></div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>    uint32_t reserved0;</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>    cudaArray_t  src;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>    <span class="keywordtype">size_t</span> offset[3];</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>    <span class="keywordtype">size_t</span> extent[3];</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>} <a class="code hl_struct" href="structnvtx_mem_cuda_array_range_desc__v1.html">nvtxMemCudaArrayRangeDesc_v1</a>;</div>
</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span><span class="keyword">typedef</span> <a class="code hl_struct" href="structnvtx_mem_cuda_array_range_desc__v1.html">nvtxMemCudaArrayRangeDesc_v1</a> <a class="code hl_struct" href="structnvtx_mem_cuda_array_range_desc__v1.html">nvtxMemCudaArrayRangeDesc_t</a>;</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span> </div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="group___m_e_m_o_r_y___c_u_d_a_r_t.html#ga16e14ba99fe35f86514cde7a791021aa">   84</a></span><span class="preprocessor">#define NVTX_MEM_TYPE_CU_ARRAY 0x12</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span> </div>
<div class="foldopen" id="foldopen00088" data-start="{" data-end="};">
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="structnvtx_mem_cu_array_range_desc__v1.html">   88</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="structnvtx_mem_cu_array_range_desc__v1.html">nvtxMemCuArrayRangeDesc_v1</a></div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>{</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span>    uint16_t extCompatID; <span class="comment">/* Set to NVTX_EXT_COMPATID_MEM */</span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span>    uint16_t structSize; <span class="comment">/* Size of the structure. */</span></div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>    uint32_t reserved0;</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>    CUarray  src;</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>    <span class="keywordtype">size_t</span> offset[3];</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>    <span class="keywordtype">size_t</span> extent[3];</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>} <a class="code hl_struct" href="structnvtx_mem_cu_array_range_desc__v1.html">nvtxMemCuArrayRangeDesc_v1</a>;</div>
</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span><span class="keyword">typedef</span> <a class="code hl_struct" href="structnvtx_mem_cu_array_range_desc__v1.html">nvtxMemCuArrayRangeDesc_v1</a> <a class="code hl_struct" href="structnvtx_mem_cu_array_range_desc__v1.html">nvtxMemCuArrayRangeDesc_t</a>;</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span> </div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span><span class="comment">/* Reserving 0x2-0xF for more common types */</span></div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span> </div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span><span class="preprocessor">#define NVTX_MEM_CUDA_PEER_ALL_DEVICES -1</span></div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span> </div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"><a class="line" href="group___m_e_m_o_r_y___c_u_d_a_r_t.html#gab620d175752a7d8f653b543b123ff39d">  118</a></span>NVTX_DECLSPEC <a class="code hl_typedef" href="group___m_e_m_o_r_y.html#ga421ec4c6d96c342008aa3d04906643f0">nvtxMemPermissionsHandle_t</a> NVTX_API <a class="code hl_function" href="group___m_e_m_o_r_y___c_u_d_a_r_t.html#gab620d175752a7d8f653b543b123ff39d">nvtxMemCudaGetProcessWidePermissions</a>(</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span>    nvtxDomainHandle_t domain);</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"><a class="line" href="group___m_e_m_o_r_y___c_u_d_a_r_t.html#ga8590f26d90d3bae446b20f45e2fa1f67">  136</a></span>NVTX_DECLSPEC <a class="code hl_typedef" href="group___m_e_m_o_r_y.html#ga421ec4c6d96c342008aa3d04906643f0">nvtxMemPermissionsHandle_t</a> NVTX_API <a class="code hl_function" href="group___m_e_m_o_r_y___c_u_d_a_r_t.html#ga8590f26d90d3bae446b20f45e2fa1f67">nvtxMemCudaGetDeviceWidePermissions</a>(</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span>    nvtxDomainHandle_t domain,</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span>    <span class="keywordtype">int</span> device);</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span> </div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"><a class="line" href="group___m_e_m_o_r_y___c_u_d_a_r_t.html#gab206e393eb36a38670ed44c88f1df217">  150</a></span>NVTX_DECLSPEC <span class="keywordtype">void</span> NVTX_API <a class="code hl_function" href="group___m_e_m_o_r_y___c_u_d_a_r_t.html#gab206e393eb36a38670ed44c88f1df217">nvtxMemCudaSetPeerAccess</a>(</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span>    nvtxDomainHandle_t domain,</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span>    <a class="code hl_typedef" href="group___m_e_m_o_r_y.html#ga421ec4c6d96c342008aa3d04906643f0">nvtxMemPermissionsHandle_t</a> permissions,</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span>    <span class="keywordtype">int</span> devicePeer, <span class="comment">/* device number such as from cudaGetDevice() or NVTX_MEM_CUDA_PEER_ALL_DEVICES */</span></div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span>    uint32_t flags); <span class="comment">/* NVTX_MEM_PERMISSIONS_REGION_FLAGS_* */</span></div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span> </div>
<div class="foldopen" id="foldopen00172" data-start="{" data-end="};">
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"><a class="line" href="structnvtx_mem_mark_initialized_batch__v1.html">  172</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="structnvtx_mem_mark_initialized_batch__v1.html">nvtxMemMarkInitializedBatch_v1</a></div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span>{</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span>    uint16_t extCompatID; <span class="comment">/* Set to NVTX_EXT_COMPATID_MEM */</span></div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno">  175</span>    uint16_t structSize; <span class="comment">/* Size of the structure. */</span></div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span> </div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno">  177</span>    uint32_t regionType; <span class="comment">/* NVTX_MEM_TYPE_* */</span></div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno">  178</span> </div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno">  179</span>    <span class="keywordtype">size_t</span> regionDescCount;</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno">  180</span>    <span class="keywordtype">size_t</span> regionDescElementSize;</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno">  181</span>    <span class="keywordtype">void</span> <span class="keyword">const</span>* regionDescElements; <span class="comment">/* this will also become the handle for this region */</span></div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno">  182</span> </div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno">  183</span>} <a class="code hl_struct" href="structnvtx_mem_mark_initialized_batch__v1.html">nvtxMemMarkInitializedBatch_v1</a>;</div>
</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno">  184</span><span class="keyword">typedef</span> <a class="code hl_struct" href="structnvtx_mem_mark_initialized_batch__v1.html">nvtxMemMarkInitializedBatch_v1</a> <a class="code hl_struct" href="structnvtx_mem_mark_initialized_batch__v1.html">nvtxMemMarkInitializedBatch_t</a>;</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno">  185</span> </div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"><a class="line" href="group___m_e_m_o_r_y___c_u_d_a_r_t.html#ga0d8a3745a6812aa75ef3d2279c012259">  190</a></span>NVTX_DECLSPEC <span class="keywordtype">void</span> NVTX_API <a class="code hl_function" href="group___m_e_m_o_r_y___c_u_d_a_r_t.html#ga0d8a3745a6812aa75ef3d2279c012259">nvtxMemCudaMarkInitialized</a>(</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno">  191</span>    nvtxDomainHandle_t domain,</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno">  192</span>    cudaStream_t stream,</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno">  193</span>    uint8_t isPerThreadStream, <span class="comment">/* 0 for false, otherwise true */</span></div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno">  194</span>    <a class="code hl_struct" href="structnvtx_mem_mark_initialized_batch__v1.html">nvtxMemMarkInitializedBatch_t</a> <span class="keyword">const</span>* desc);</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno">  195</span> </div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno">  198</span><span class="preprocessor">#endif </span><span class="comment">/* NVTX_MEM_CUDART_CONTENTS_V1 */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno">  199</span> </div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno">  200</span><span class="preprocessor">#ifdef __GNUC__</span></div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno">  201</span><span class="preprocessor">#pragma GCC visibility push(internal)</span></div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno">  202</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno">  203</span> </div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno">  204</span><span class="preprocessor">#ifndef NVTX_NO_IMPL</span></div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno">  205</span><span class="preprocessor">#define NVTX_EXT_IMPL_MEM_CUDART_GUARD </span><span class="comment">/* Ensure other headers cannot be included directly */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno">  206</span><span class="preprocessor">#include &quot;nvtxDetail/nvtxExtImplMemCudaRt_v1.h&quot;</span></div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno">  207</span><span class="preprocessor">#undef NVTX_EXT_IMPL_MEM_CUDART_GUARD</span></div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno">  208</span><span class="preprocessor">#endif </span><span class="comment">/*NVTX_NO_IMPL*/</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno">  209</span> </div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno">  210</span><span class="preprocessor">#ifdef __GNUC__</span></div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno">  211</span><span class="preprocessor">#pragma GCC visibility pop</span></div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno">  212</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno">  213</span> </div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno">  214</span> </div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno">  215</span><span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno">  216</span>}</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno">  217</span><span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span><span class="preprocessor"></span></div>
<div class="ttc" id="agroup___m_e_m_o_r_y___c_u_d_a_r_t_html_ga0d8a3745a6812aa75ef3d2279c012259"><div class="ttname"><a href="group___m_e_m_o_r_y___c_u_d_a_r_t.html#ga0d8a3745a6812aa75ef3d2279c012259">nvtxMemCudaMarkInitialized</a></div><div class="ttdeci">NVTX_DECLSPEC void NVTX_API nvtxMemCudaMarkInitialized(nvtxDomainHandle_t domain, cudaStream_t stream, uint8_t isPerThreadStream, nvtxMemMarkInitializedBatch_t const *desc)</div><div class="ttdoc">Register a region of memory inside of a heap of linear process virtual memory.</div></div>
<div class="ttc" id="agroup___m_e_m_o_r_y___c_u_d_a_r_t_html_ga8590f26d90d3bae446b20f45e2fa1f67"><div class="ttname"><a href="group___m_e_m_o_r_y___c_u_d_a_r_t.html#ga8590f26d90d3bae446b20f45e2fa1f67">nvtxMemCudaGetDeviceWidePermissions</a></div><div class="ttdeci">NVTX_DECLSPEC nvtxMemPermissionsHandle_t NVTX_API nvtxMemCudaGetDeviceWidePermissions(nvtxDomainHandle_t domain, int device)</div><div class="ttdoc">Get the permission object that represent the CUDA runtime device or cuda driver context.</div></div>
<div class="ttc" id="agroup___m_e_m_o_r_y___c_u_d_a_r_t_html_gab206e393eb36a38670ed44c88f1df217"><div class="ttname"><a href="group___m_e_m_o_r_y___c_u_d_a_r_t.html#gab206e393eb36a38670ed44c88f1df217">nvtxMemCudaSetPeerAccess</a></div><div class="ttdeci">NVTX_DECLSPEC void NVTX_API nvtxMemCudaSetPeerAccess(nvtxDomainHandle_t domain, nvtxMemPermissionsHandle_t permissions, int devicePeer, uint32_t flags)</div><div class="ttdoc">Change the default behavior for all memory mapped in from a particular device.</div></div>
<div class="ttc" id="agroup___m_e_m_o_r_y___c_u_d_a_r_t_html_gab620d175752a7d8f653b543b123ff39d"><div class="ttname"><a href="group___m_e_m_o_r_y___c_u_d_a_r_t.html#gab620d175752a7d8f653b543b123ff39d">nvtxMemCudaGetProcessWidePermissions</a></div><div class="ttdeci">NVTX_DECLSPEC nvtxMemPermissionsHandle_t NVTX_API nvtxMemCudaGetProcessWidePermissions(nvtxDomainHandle_t domain)</div><div class="ttdoc">Get the permission object that represent the CUDA runtime device or cuda driver context.</div></div>
<div class="ttc" id="agroup___m_e_m_o_r_y_html_ga421ec4c6d96c342008aa3d04906643f0"><div class="ttname"><a href="group___m_e_m_o_r_y.html#ga421ec4c6d96c342008aa3d04906643f0">nvtxMemPermissionsHandle_t</a></div><div class="ttdeci">nvtxMemPermissions_t * nvtxMemPermissionsHandle_t</div><div class="ttdoc">A handle returned by a tool to represent a memory permissions mask.</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_mem_8h_source.html#l00204">nvToolsExtMem.h:204</a></div></div>
<div class="ttc" id="astructnvtx_mem_cu_array_range_desc__v1_html"><div class="ttname"><a href="structnvtx_mem_cu_array_range_desc__v1.html">nvtxMemCuArrayRangeDesc_v1</a></div><div class="ttdoc">structure to describe memory in a CUDA array object</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_mem_cuda_rt_8h_source.html#l00088">nvToolsExtMemCudaRt.h:89</a></div></div>
<div class="ttc" id="astructnvtx_mem_cuda_array_range_desc__v1_html"><div class="ttname"><a href="structnvtx_mem_cuda_array_range_desc__v1.html">nvtxMemCudaArrayRangeDesc_v1</a></div><div class="ttdoc">structure to describe memory in a CUDA array object</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_mem_cuda_rt_8h_source.html#l00062">nvToolsExtMemCudaRt.h:63</a></div></div>
<div class="ttc" id="astructnvtx_mem_mark_initialized_batch__v1_html"><div class="ttname"><a href="structnvtx_mem_mark_initialized_batch__v1.html">nvtxMemMarkInitializedBatch_v1</a></div><div class="ttdoc">Mark memory ranges as initialized.</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_mem_cuda_rt_8h_source.html#l00172">nvToolsExtMemCudaRt.h:173</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
